package com.kmproject.haifu.app;

import com.kmproject.haifu.mvp.model.entity.beans.HousePayWayBean;

import java.util.ArrayList;
import java.util.List;

/**
 * Author: zhangjing
 * DATA:2018/8/23 下午5:09
 * DESC:
 * email:zhangjingworkmol@163.com
 */
public interface AppConstant {

    /**
     * 地区数据
     */
    List<HousePayWayBean> houseArea = new ArrayList<>();

    String ALIYUNDUN_CHECK_APPID = "FFFFA000000001A5582D";//案例云校验appid
    String LOGUSER_LOGIN_INFOIN = "user_login_info";//用户登录成功后的信息
    String USER_INFO = "user_info";//用户信息
    String USER_ID = "user_id";//用户id
    String USER_XGSF = "user_XGSF";//用户修改身份
    String rent_Search_history = "rent_Search_history";//租房用户搜索历史记录
    String sendhand_Search_history = "sendhand_Search_history";//二手物品用户搜索历史记录
    String user_isFirst_login = "user_isFirst_login";//判断用户是不是第一次登录。第一次登录弹出选择地址的,是一次登录就传true，否则就是false
    String user_default_select_area = "user_default_select_area";//默认用户选中的区域
    String user_memberInfo = "user_memberInfo";//用户会员信息
    String user_OPEN_NOTICE = "user_open_notice";//用户是否需要打开通知
    int pageSize = 5;//每页条数
    int pageSize_big = 1000;//每页条数
    int START_ACTIVITY_REQUEST_CODE = 1001;
    int REQUEST_CODE_CHOOSE = 1002;//选择图片或者拍照请求码
    String RENT_SEEKING_SEARCH_HISTORY = "rent_seeking_search_history";

    abstract class PHConstant {
        public static String phUserId = null;
        public static int phType = 0;
    }


    //网络请求码
    int access_denied = 4030;//权限不足,拒绝访问!
    int credentials_expired = 3003;//凭证已过期!
    int bad_request = 4000;//无效的请求!
    int not_found = 4004;//无效的访问地址！
    int service_unavailable = 5003;//服务暂时无法访问！
    int method_not_allowed = 4005;//请求方式不支持!
    int media_type_not_acceptable = 4006;//媒体类型不支持!
    int username_not_found = 3014;//账号不存在
    int bad_credentials = 3000;//账号或密码错误!
    int account_disabled = 3001;//账号已被禁用!
    int account_expired = 3002;//账号已过期!
    int account_locked = 3004;//账号已被锁定!
    int error = 5000;//服务器繁忙,请稍后再试!
    int unauthorized = 2012;//认证失败,请重新登录!
    int too_many_requests = 4029;//访问太过频繁，请稍后再试!
    int access_denied_black_ip_limited = 4031;//IP地址拒绝访问!
    int access_denied_white_ip_limited = 4032;//已开启白名单限制,IP地址拒绝访问!
    int access_denied_authority_expired = 4033;//授权已过期,拒绝访问!
    int access_denied_updating = 4034;//正在升级维护中,请稍后再试!
    int access_denied_disabled = 4035;//请求地址,无法访问!
    int access_denied_not_open = 4036;//请求地址,拒绝访问!
    int ACCOUNT_EXIST = 3005;//, "account_exist"), 账号已注册
    int success = 0;//成功
    int fail = 1000;//失败
    int alert = 1001;
    int SIGNATURE_DENIED = 2031;//
    int gateway_timeout = 5004;//
    int INVALID_TOKEN = 2000;//, "invalid_token"),
    int INVALID_SCOPE = 2001;//, "invalid_scope"),
    int INVALID_REQUEST = 2002;//, "invalid_request"),
    int INVALID_CLIENT = 2003;//, "invalid_client"),
    int INVALID_GRANT = 2004;//, "invalid_grant"),
    int REDIRECT_URI_MISMATCH = 2005;//
}
